﻿using FytSoa.Core.Model.Cms;
using System;
using System.Collections.Generic;
using System.Text;

namespace FytSoa.Service.DtoModel
{

    /// <summary>
    /// 返回给前端的数据，修改时候可避免多次调用
    /// </summary>
    public class GetColumnDto
    {
        /// <summary>
        /// 返回一个list
        /// </summary>
        public List<CmsColumn> list { get; set; }

        /// <summary>
        /// 返回单个模型
        /// </summary>
        public CmsColumn model { get; set; }
    }

    /// <summary>
    /// 栏目树结构
    /// </summary>
    public class ColumnTree
    {
        public int Id { get; set; }

        public int ColumnId { get; set; }

        public string Name { get; set; }

        public string Href { get; set; }

        public int TempId { get; set; }

        public int Sort { get; set; }

        public bool Spread { get; set; } = true;

        public bool IsAjax { get; set; } = true;

        public bool isshow { get; set; } = true;

        public List<ColumnTree> children { get; set; }
    }
}
